package git.yyge.luajava;

// Printer.java
public class Printer {
    private String name;

    // 必须有公开的构造函数
//    public Printer() {
//        this.name = name;
//        System.out.println("Printer 已创建，名称: " + name);
//    }
    public Printer(String name) {
        this.name = name;
        System.out.println("Printer 已创建，名称: " + name);
    }

    public void print(String message) {
        System.out.println(name + " 打印: " + message);
    }
}